import request from '@/utils/request'

export function login(data) {
  return request.post('/sys/login', data)
}

export function getUserInfo(token) {
  return request.post('/sys/profile')
}

export function getUserDetail(id) {
  return request.get(`/sys/user/${id}`)
}

export function logout() {

}

// 保存员工基本信息
export const saveUserDetail = data => request.put(`/sys/user/${data.id}`, data)
